home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / corelib / ncbilcl.aov < prev    next >
Text File  |  1996-07-05  |  5KB  |  161 lines

  1. /*   ncbilcl.h - AXP/OpenVMS version
  2. * ===========================================================================
  3. *
  4. *                            PUBLIC DOMAIN NOTICE
  5. *               National Center for Biotechnology Information
  6. *
  7. *  This software/database is a "United States Government Work" under the
  8. *  terms of the United States Copyright Act.  It was written as part of
  9. *  the author's official duties as a United States Government employee and
  10. *  thus cannot be copyrighted.  This software/database is freely available
  11. *  to the public for use. The National Library of Medicine and the U.S.
  12. *  Government have not placed any restriction on its use or reproduction.
  13. *
  14. *  Although all reasonable efforts have been taken to ensure the accuracy
  15. *  and reliability of the software and data, the NLM and the U.S.
  16. *  Government do not and cannot warrant the performance or results that
  17. *  may be obtained by using this software or data. The NLM and the U.S.
  18. *  Government disclaim all warranties, express or implied, including
  19. *  warranties of performance, merchantability or fitness for any particular
  20. *  purpose.
  21. *
  22. *  Please cite the author in any work or product based on this material.
  23. *
  24. * ===========================================================================
  25. *
  26. * File Name:  ncbilcl.h
  27. *
  28. * Author:  Gish, Kans, Ostell, Schuler, Gilbert
  29. *
  30. * Version Creation Date:   1/1/91
  31. *
  32. * $Revision: 1.5 $
  33. *
  34. * File Description:
  35. *        system dependent header
  36. *        AXP/OpenVMS version
  37. *
  38. * Modifications:
  39. * --------------------------------------------------------------------------
  40. * Date     Name               Description of modification
  41. * -------  ------------------ ---------------------------------------------
  42. *
  43. * 26-FEB-1991 L. Yarbrough    VAX/VMS Version
  44. * 24-DEC-1992 W. Gilbert      AXP/OpenVMS Version
  45. *
  46. * ==========================================================================
  47. */
  48. #ifndef _NCBILCL_
  49. #define _NCBILCL_
  50.  
  51. /* PLATFORM DEFINITION FOR VAX under VMS */
  52.  
  53. #define COMP_BSD
  54. #define OS_VMS
  55. #define OS_AXP_VMS
  56. #define PROC_ALPHA
  57. #define WIN_DUMB
  58.  
  59. /*----------------------------------------------------------------------*/
  60. /*      #includes                                                       */
  61. /*----------------------------------------------------------------------*/
  62. #include <types.h>
  63. #include <limits.h>
  64. #include <stat.h>
  65. #include <stddef.h>
  66. #include <stdio.h>
  67. #include <ctype.h>
  68. #include <string.h>
  69. /* #include <malloc.h> */        /*WAG*/
  70. /* #include <memory.h> */        /*WAG*/
  71. #include <stdlib.h>
  72. #include <math.h>
  73. #include <errno.h>
  74. #include <float.h>
  75.  
  76. /*----------------------------------------------------------------------*/
  77. /*      Missing ANSI-isms                                               */
  78. /*----------------------------------------------------------------------*/
  79. #define noalias        /* "noalias" keyword not accepted */
  80.  
  81. #ifndef SEEK_SET
  82. #define SEEK_SET    0    /* Set file pointer to offset */
  83. #define SEEK_CUR    1    /* Set file pointer to current plus offset */
  84. #define SEEK_END    2    /* Set file pointer to EOF plus offset */
  85. #endif
  86.  
  87. #ifndef FILENAME_MAX
  88. #define FILENAME_MAX 32
  89. #endif
  90.  
  91. /*----------------------------------------------------------------------*/
  92. /*      Aliased Logicals, Datatypes                                     */
  93. /*----------------------------------------------------------------------*/
  94. typedef int        Nlm_Int4, *Nlm_Int4Ptr;
  95. typedef unsigned int    Nlm_Uint4, *Nlm_Uint4Ptr;
  96. typedef long        Nlm_Int8, *Nlm_Int8Ptr;
  97. typedef unsigned long    Nlm_Uint8, *Nlm_Uint8Ptr;
  98.  
  99. #define Int4        Nlm_Int4
  100. #define Int4Ptr        Nlm_Int4Ptr
  101. #define Uint4        Nlm_Uint4
  102. #define Uint4Ptr    Nlm_Uint4Ptr
  103. #define Int8        Nlm_Int8
  104. #define Int8Ptr        Nlm_Int8Ptr
  105. #define Uint8        Nlm_Uint8
  106. #define Uint8Ptr    Nlm_Uint8Ptr
  107.         
  108. /*----------------------------------------------------------------------*/
  109. /*      Misc Macros                                                     */
  110. /*----------------------------------------------------------------------*/
  111. #define PROTO(x) x    /* Prototypes are acceptable */
  112. #define VPROTO(x) x   /* Prototype for variable argument list */
  113. #define DIRDELIMCHR     ']'
  114. #define DIRDELIMSTR     "."
  115. #define CWDSTR          "."
  116.  
  117. #define KBYTE           (1024)
  118. #define MBYTE           (1048576)
  119.  
  120. #define IS_LITTLE_ENDIAN    /* AXP architecture */
  121.  
  122. #ifndef PATH_MAX
  123. #define PATH_MAX 1024
  124. #endif
  125.  
  126. /*----------------------------------------------------------------------*/
  127. /*      For importing MS_DOS code                                       */
  128. /*----------------------------------------------------------------------*/
  129. #define near
  130. #define far
  131. #define huge
  132. #define cdecl
  133. #define pascal
  134. #define _pascal
  135. #define _near
  136. #define _far
  137. #define _huge
  138. #define _cdecl
  139.  
  140. /*----------------------------------------------------------------------*/
  141. /*      Macros for Floating Point                                       */
  142. /*----------------------------------------------------------------------*/
  143. #define EXP2(x) exp((x)*LN2)
  144. #define LOG2(x) (log(x)*(1./LN2))
  145. #define EXP10(x) exp((x)*LN10)
  146. #define LOG10(x) (log(x)*(1./LN10))
  147.  
  148. /*----------------------------------------------------------------------*/
  149. /*      Macros Defining Limits                                          */
  150. /*----------------------------------------------------------------------*/
  151. #define INT4_MIN    INT_MIN
  152. #define INT4_MAX    INT_MAX
  153. #define UINT4_MAX    UINT_MAX
  154. #define INT8_MIN    LONG_MIN
  155. #define INT8_MAX    LONG_MAX
  156. #define UINT8_MAX    ULONG_MAX
  157.  
  158. #define MAXALLOC    0x40000000 /* Largest permissible memory request */
  159.  
  160. #endif
  161.